#include <stdio.h>
#include <math.h>    /*头文件*/

int prime(int number);   /*函数定义*/

int main()
{
    int number,m,a,b,count;   /*定义变量*/
    for (number = 6; number <= 100; number = number + 2)    /*外层循环*/
    {
        a = 2;
        do
        {
            a++;
            b = number - a;
            if (prime(a) && prime(b))
            {
                printf("%3d= %2d+ %2d", number, a, b);    /*找到一对质数并打印*/
                break;
            }
        } while (!(prime(a) && prime(b)));
        if (number % 10 == 4)     /*保证格式*/
        {
            printf("\n");
        }
        else
        {
            printf("\t");
        }
    }
    
}

int prime(int number)  /*判断素数*/
{
    int i;
    if (number <= 1)
    {
        return 0;
    }
    if (number == 2)
    {
        return 1;
    }
    if (number % 2 == 0)
    {
        return 0;
    }
    for (i = 3; i <= sqrt(number); i = i + 2)
    {
        if (number % i == 0)
        {
            return 0;
        }
    }
    return 1;
}